-- GENERATED SPELL FOR [Spitelash Siren] --


function spell0_6195(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_6195', 8286, 1)
end

function spell1_6195(pUnit, Event) --@Frost Shot,n/a--
pUnit:FullCastSpellOnTarget(12551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6195', 10345, 1)
end

function spell2_6195(pUnit, Event) --@Polymorph Backfire,n/a--
pUnit:FullCastSpellOnTarget(28406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6195', 8349, 1)
end

function spell3_6195(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_6195', 15000, 1)
end

function spell4_6195(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6195', 671, 1)
end

function Sorts_6195(pUnit, Event)
local choix_sorts_6195 = math.random(0, 4)
if choix_sorts_6195 == 0 then
pUnit:RegisterEvent('spell0_6195', 1, 1)
end
if choix_sorts_6195 == 1 then
pUnit:RegisterEvent('spell1_6195', 1, 1)
end
if choix_sorts_6195 == 2 then
pUnit:RegisterEvent('spell2_6195', 1, 1)
end
if choix_sorts_6195 == 3 then
pUnit:RegisterEvent('spell3_6195', 1, 1)
end
if choix_sorts_6195 == 4 then
pUnit:RegisterEvent('spell4_6195', 1, 1)
end
end

function mob6195_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6195', math.random(1500, 3000), 1)
end

function mob6195_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6195_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6195_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6195, 1, 'mob6195_Action')
RegisterUnitEvent(6195, 2, 'mob6195_Leave')
RegisterUnitEvent(6195, 3, 'mob6195_Kill')
RegisterUnitEvent(6195, 4, 'mob6195_Die')
